package com.herench.bunch.cmis.agent.impl;

import com.herench.bunch.cmis.agent.CmisAgent;
import com.herench.bunch.cmis.dao.his.CmisDao;
import com.herench.bunch.cmis.dao.turtle.CsDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * @author luoxiaoming on 18-10-16 上午9:59
 * @email luoxiaoming@herench.com
 */


@Component
public class CmisAgentImpl implements CmisAgent {

    @Autowired
    private CmisDao cmisDao;

//    @Autowired
//    private CsDao csDao;

    @Override
    public List<Map<String,Object>> queryNurse() {
        List<Map<String,Object>> res = cmisDao.queryNurse();
        return res;
    }

    @Override
    public List<Map<String, Object>> queryDept() {
        List<Map<String,Object>> res = cmisDao.queryDept();
//        List<Map<String,Object>> res = csDao.queryNurse();
        return res;
    }

    @Override
    public List<Map<String, Object>> queryGiveDrug() {
        List<Map<String,Object>> res = cmisDao.queryGiveDrug();
        return res;
    }

    @Override
    public List<Map<String, Object>> queryOrderClass() {
        List<Map<String,Object>> res = cmisDao.queryOrderClass();
        return res;
    }

    @Override
    public List<Map<String, Object>> queryOrderFreq() {
        List<Map<String,Object>> res = cmisDao.queryOrderFreq();
        return res;
    }


}
